<template>
  <div id="app">
    <el-container>
      <el-header v-if="!topBottomShow">
        <Header />
      </el-header>
      <el-main>
        <router-view />
      </el-main>
      <Footer v-if="!topBottomShow" />
    </el-container>
  </div>
</template>

<script>
import Header from "./components/header";
import Footer from "./components/footer";
export default {
  components: {
    Header,
    Footer,
  },
  computed: {
    topBottomShow() {
      return this.$route.query.topBottomShow
    }
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
html,
body {
  height: 100%;
}

#app {
  font-family: "Source Han Sans CN", "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.el-header {
  height: 100px !important;
}
.el-header,
.el-main {
  padding: 0 !important;
}

.pointer {
  cursor: pointer;
}
.flexRow {
  display: flex;
}
.flexCol {
  display: flex;
  flex-direction: column;
}
.flexWarp {
  display: flex;
  flex-wrap: wrap;
}
.Xbetween {
  justify-content: space-between;
}
.Xcenter {
  justify-content: center;
}
.Xend {
  justify-content: flex-end;
}
.Ycenter {
  align-items: center;
}
.Yend {align-items: flex-end;}
.w1400 {
  width: 1400px;
  margin: 0 auto;
}
.w1420 {
  min-width: 1125px;
  padding: 0 calc((100% - 1420px) / 2);
  box-sizing: border-box;
}
</style>
